<!--
 * @Author: your name
 * @Date: 2021-10-14 11:15:33
 * @LastEditTime: 2021-10-14 11:26:32
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /a1902-a-group/admin_pc/src/component/Test.vue
-->
<template>
  <div>
      <span>父亲传递给儿子</span>
      <p>
          <!-- {{name}} -->
          {{$attrs.name}}
      </p>
      <p>测试1</p>
      <p v-bind="$attrs">测试2</p>
      <p v-bind:age="$attrs.age">测试3</p>
      <p>测试4</p>
  </div>
</template>

<script>
export default {
    // props:['name'],
    inheritAttrs: false,
    created() {
        console.log(this.$attrs.name)
    },
}
</script>

<style>

</style>